package com.ssy.lingxi.message.model.dto;


import cn.hutool.json.JSONObject;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * IM回调 - DTO
 * @author fhj
 * @date 2021/03/29
 * @version 2.0.0
 */
@Data
public class ImNotifyDTO implements Serializable{
    private static final long serialVersionUID = 4045669949254463861L;

    @JsonProperty("CallbackCommand")
    @ApiModelProperty(value = "回调命令")
    private String CallbackCommand;

    @JsonProperty("From_Account")
    @ApiModelProperty(value = "发送者")
    private String From_Account;

    @JsonProperty("To_Account")
    @ApiModelProperty(value = "接收者")
    private String To_Account;

    @JsonProperty("MsgTime")
    @ApiModelProperty(value = "消息时间")
    private Long MsgTime;

    @JsonProperty("MsgKey")
    @ApiModelProperty(value = "消息的唯一标识")
    private String MsgKey;

    @JsonProperty("SendMsgResult")
    @ApiModelProperty(value = "消息结果（0成功；非0失败；）")
    private Integer SendMsgResult;

    @JsonProperty("ErrorInfo")
    @ApiModelProperty(value = "失败原因")
    private String ErrorInfo;

    @JsonProperty("UnreadMsgNum")
    @ApiModelProperty(value = "未读的单聊消息总数量")
    private Integer UnreadMsgNum;

    @JsonProperty("MsgBody")
    @ApiModelProperty(value = "消息体")
    private List<JSONObject> MsgBody;
}
